<template>
  <div class="demo-title">chexkbox/demo8</div>
  <div class="demo">
    <CheckboxGroup class="checkboxGroup" v-model="val">
      <Checkbox class="checkbox" label="1" text-position="left">Option content1</Checkbox>
      <Checkbox class="checkbox" label="2" text-position="left">Option content2</Checkbox>
      <Checkbox class="checkbox" label="3" text-position="left">Option content3</Checkbox>
      <Checkbox class="checkbox" label="4" text-position="left">Option content4</Checkbox>
    </CheckboxGroup>
  </div>
</template>

<script lang="ts" setup>
  import { ref } from 'vue'
  import { Checkbox, CheckboxGroup } from '@sscd-mobile/checkbox'
  const val = ref(['3'])
</script>

<style lang="less" scoped>
  .demo {
    padding: 12px;
    background-color: #fff;
    .checkbox {
      &:not(:first-child) {
        margin-top: 12px;
      }
    }
  }
</style>
